<dl class="n-box">
	<dt class="n-box-head">
		<div class="n-right">
			<?=n_ui(n_url('user', 'adminAdd'),'添加管理员')?>
		</div>
		<b>管理员列表</b>
	</dt>
	<dd class="n-box-body">
		

		<?php if(count($data['adminInfo']) > 0):?>
		<table class="n-table n-size-full n-sep-top">
			<tbody>
			<tr>
				<th>ID</th>
				<th>账号</th>
				<th>昵称</th>
				<th>手机</th>
				<th>上次登录时间</th>
				<th>操作</th>
			</tr>
		<?php 
			$adminLoginTime = $data['adminLoginTime'];
			foreach($data['adminInfo'] as $adminInfo):
				$ppid = $adminInfo['id'];
		?>
			<tr>
				<td><?=$ppid?></td>
				<td><?=$adminInfo['uname']?></td>
				<td><?=$adminInfo['nickname']?></td>
				<td><?=isset($adminInfo['phone']) ? $adminInfo['phone'] : '-'?></td>
				<td><?=isset($adminLoginTime[$ppid]) ? date('Y-m-d H:i:s', $adminLoginTime[$ppid]) : '-'?></td>
				<td>
					<?=n_ui(n_url('user', 'adminRestPwd', ['ppid'=>$ppid]),"重置密码")?>
					<?=n_ui(n_url('user', 'adminRemove', ['ppid'=>$ppid]),"移除")?>
				</td>
			</tr>
		<?php endforeach;endif;?>
			</tbody>
		</table>
		<div class="n-paging"><?=$data['paging']?></div>
	</dd>
</dl>